package com.ruoyi.course.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.course.mapper.CourseSelectedMapper;
import com.ruoyi.course.domain.CourseSelected;
import com.ruoyi.course.service.ICourseSelectedService;

/**
 * 已选课程管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-22
 */
@Service
public class CourseSelectedServiceImpl implements ICourseSelectedService 
{
    @Autowired
    private CourseSelectedMapper courseSelectedMapper;

    /**
     * 查询已选课程管理
     * 
     * @param studentSelectId 已选课程管理主键
     * @return 已选课程管理
     */
    @Override
    public CourseSelected selectCourseSelectedByStudentSelectId(Long studentSelectId)
    {
        return courseSelectedMapper.selectCourseSelectedByStudentSelectId(studentSelectId);
    }

    /**
     * 查询已选课程管理列表
     * 
     * @param courseSelected 已选课程管理
     * @return 已选课程管理
     */
    @Override
    public List<CourseSelected> selectCourseSelectedList(CourseSelected courseSelected)
    {
        return courseSelectedMapper.selectCourseSelectedList(courseSelected);
    }

    /**
     * 新增已选课程管理
     * 
     * @param courseSelected 已选课程管理
     * @return 结果
     */
    @Override
    public int insertCourseSelected(CourseSelected courseSelected)
    {
        return courseSelectedMapper.insertCourseSelected(courseSelected);
    }

    /**
     * 修改已选课程管理
     * 
     * @param courseSelected 已选课程管理
     * @return 结果
     */
    @Override
    public int updateCourseSelected(CourseSelected courseSelected)
    {
        return courseSelectedMapper.updateCourseSelected(courseSelected);
    }

    /**
     * 批量删除已选课程管理
     * 
     * @param studentSelectIds 需要删除的已选课程管理主键
     * @return 结果
     */
    @Override
    public int deleteCourseSelectedByStudentSelectIds(Long[] studentSelectIds)
    {
        return courseSelectedMapper.deleteCourseSelectedByStudentSelectIds(studentSelectIds);
    }

    /**
     * 删除已选课程管理信息
     * 
     * @param studentSelectId 已选课程管理主键
     * @return 结果
     */
    @Override
    public int deleteCourseSelectedByStudentSelectId(Long studentSelectId)
    {
        return courseSelectedMapper.deleteCourseSelectedByStudentSelectId(studentSelectId);
    }
}
